#pragma once
#include "base/Control.h"
class ContextMenu : public Control
{
public:
    void ParseXmlElement(class TiXmlElement* ele);
    bool SetAttribute(const char* attrName, const char* attrVal);

    void OnDraw();
    void Show();
    void onMouseMove(int x, int y);
    void onMouseButtonDown(int button, int x, int y);
    void onMouseButtonUp(int button, int x, int y);
    void onKeyDown(int key, bool bCtrl, bool bShift, bool bAlt);
    void onKeyUp(int key);
    Control* CreateControl(std::string sControlClassName);

    bool bVisible;
    EventHandler<Control, VarBaseString> onNewFuncNameInput;
};

RegisterBlueprintClass(ContextMenu)